<?php
namespace app\admin\controller;

use app\common\controller\CommonBase;
use app\admin\model\Admin as AdminModel;
use app\admin\library\Auth;

class Account extends CommonBase
{
	public function index()
	{
		$url = $this->request->get('url', '/');
		return $url;
		return __ROOT__.'123';
	}

	//登录显示
	public function login()
	{
		$auth = Auth::instance();
		$auth->login('tuduweb','kik1017','7200');

		if($auth->isLogin()) $this->redirect('admin/index/index');



		return 'login view';
	}

	public function check_login()
	{

	}
}